<?function user_droit($droit){	global $sql;	if(!is_object($sql)) $sql= new sql();		$var=$sql->request_single("select count(*) as c from ".CFG_MYSQL_PREFIX."groupe_droit where droit='".$droit."'");	if($var->c==0) return true;		if($GLOBALS["USER"]->groupes=="") return false;		$var=$sql->request_single("select * from ".CFG_MYSQL_PREFIX."groupe_droit where droit='".$droit."' and idGroupe in (".$GLOBALS["USER"]->groupes.")");	if($var===false) return false;	else return true;}